import matplotlib.pyplot as plt

file = open('7.csv')#打开文档7.csv
data = file.readlines()
score_1=[]
score_2=[]
for num in data:
    score_1.append(float(num.split(',')[0]))
    score_2.append(float(num.split(',')[1]))
plt.scatter(score_1,score_2,label='point',color='g')
plt.title('Points')
plt.xlabel('X-axis')
plt.ylabel('Y-axis')
plt.legend()
plt.show()
            
